// Main.java
import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        // 使用SwingUtilities确保GUI线程安全
        SwingUtilities.invokeLater(() -> {
            try {
                // 设置系统UI风格
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

                // 创建并显示GUI
                LibraryGUI libraryGUI = new LibraryGUI();
                libraryGUI.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
            }
        });
    }
}